<template>
	<view class="main animated fadeIn faster">
		<view class="position-fixed w-100 z-index-100 pb-1" :style="{'paddingTop':$store.state.statusBarHeight+'px','backgroundColor':bgcolor}">
			<view class="d-flex d-flex-middle px-3" :style="{'height': $store.state.titleBarHeight + 'px'}">
				<view class="mr-4 d-flex d-flex-column d-flex-middle d-flex-center" @click="changType(0)">
					<text :class="ctype == 0?'focus-txt':'color71'">关注</text>
					<view class="liner" :class="{ 'lon': ctype == 0}"></view>
				</view>
				<view class="mr-4 d-flex d-flex-column d-flex-middle d-flex-center" @click="changType(1)">
					<text  :class="ctype == 1?'focus-txt':'color71'">推荐</text>
					<view class="liner" :class="{ 'lon': ctype == 1}"></view>
				</view>
				<view class="mr-4 d-flex d-flex-column d-flex-middle d-flex-center" @click="changType(2)">
					<text  :class="ctype == 2?'focus-txt':'color71'">组队</text>
					<view class="liner" :class="{ 'lon': ctype == 2}"></view>
				</view>
				<view class="d-flex d-flex-column d-flex-middle d-flex-center" @click="changType(3)">
					<text  :class="ctype == 3?'focus-txt':'color71'">陪玩</text>
					<view class="liner" :class="{ 'lon': ctype == 3}"></view>
				</view>
			</view>
		</view>
		<view :style="{paddingTop:$store.state.statusBarHeight+'px',height: $store.state.titleBarHeight + 'px'}"></view>
		<view class="px-1 mt-3 pb-3" v-if="ctype == 0">
			<view class="bg-fff rounded30 px-2 py-3">
				<view class="mb-4">
					<view class="d-flex d-flex-middle d-flex-between mb-1">
						<view class="d-flex d-flex-middle">
							<view class="img-bg d-flex d-flex-center d-flex-middle mr-1">
								<image src="https://gp-dev.cdn.bcebos.com/gp-dev/upload/file/source/5652440e6d12b379395e0eccfb7f9452.png" class="img-bg-img"></image>
							</view>
							<view>
								<view class="mb-1 font30">7737.摇光（国野）</view>
								<view class="font24 color999">09-20 09:27</view>
							</view>
						</view>
						<view class="d-flex d-flex-middle">
							<view class="bg-main py-1 px-2 font26 colorfff rounded30 mr-2">私聊</view>
							<text class="iconfont icon-gengduo"></text>
						</view>
					</view>
					
					<view class="pb-2" style="padding-left: 120rpx;">
						<view class="font26 mb-2">
							今日火热开启 开局强力礼包
						</view>
						<view class="mb-5">
							<image class="rounded30" src="https://t12.baidu.com/it/u=1920533683,227091777&fm=30&app=106&f=JPEG?w=640&h=367&s=3E36058C40F0D1D6583A978A0300A09F" mode="widthFix" style="width: 500rpx;"></image>
						</view>
						
						<view class="d-flex d-flex-middle pr-3 d-flex-between">
							<text class="iconfont icon-bianji color6d"></text>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-aixin1 color6d"></text>
								<text class="color71 font26 ml-1">4</text>
							</view>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-pinglun color6d"></text>
								<text class="color71 font26 ml-1">评论</text>
							</view>
						</view>
					</view>
				</view><strong></strong>
				
				<view class="mb-4">
					<view class="d-flex d-flex-middle d-flex-between mb-1">
						<view class="d-flex d-flex-middle">
							<view class="img-bg d-flex d-flex-center d-flex-middle mr-1">
								<image src="https://gp-dev.cdn.bcebos.com/gp-dev/upload/file/source/5652440e6d12b379395e0eccfb7f9452.png" class="img-bg-img"></image>
							</view>
							<view>
								<view class="mb-1 font30">7737.摇光（国野）</view>
								<view class="font24 color999">09-20 09:27</view>
							</view>
						</view>
						<view class="d-flex d-flex-middle">
							<view class="bg-main py-1 px-2 font26 colorfff rounded30 mr-2">私聊</view>
							<text class="iconfont icon-gengduo"></text>
						</view>
					</view>
					
					<view style="padding-left: 120rpx;">
						<view class="font26 mb-2">
							今日火热开启 开局强力礼包
						</view>
						<view class="mb-5">
							<image class="rounded30" src="https://t12.baidu.com/it/u=1920533683,227091777&fm=30&app=106&f=JPEG?w=640&h=367&s=3E36058C40F0D1D6583A978A0300A09F" mode="widthFix" style="width: 500rpx;"></image>
						</view>
						
						<view class="d-flex d-flex-middle pr-3 d-flex-between">
							<text class="iconfont icon-bianji color6d"></text>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-aixin1 color6d"></text>
								<text class="color71 font26 ml-1">4</text>
							</view>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-pinglun color6d"></text>
								<text class="color71 font26 ml-1">评论</text>
							</view>
						</view>
					</view>
				</view>
				
				<view class="mb-2">
					<view class="d-flex d-flex-middle d-flex-between mb-1">
						<view class="d-flex d-flex-middle">
							<view class="img-bg d-flex d-flex-center d-flex-middle mr-1">
								<image src="https://gp-dev.cdn.bcebos.com/gp-dev/upload/file/source/5652440e6d12b379395e0eccfb7f9452.png" class="img-bg-img"></image>
							</view>
							<view>
								<view class="mb-1 font30">7737.摇光（国野）</view>
								<view class="font24 color999">09-20 09:27</view>
							</view>
						</view>
						<view class="d-flex d-flex-middle">
							<view class="bg-main py-1 px-2 font26 colorfff rounded30 mr-2">私聊</view>
							<text class="iconfont icon-gengduo"></text>
						</view>
					</view>
					
					<view class="pb-2" style="padding-left: 120rpx;">
						<view class="font26 mb-2">
							今日火热开启 开局强力礼包
						</view>
						<view class="mb-5">
							<image class="rounded30" src="https://t12.baidu.com/it/u=1920533683,227091777&fm=30&app=106&f=JPEG?w=640&h=367&s=3E36058C40F0D1D6583A978A0300A09F" mode="widthFix" style="width: 500rpx;"></image>
						</view>
						
						<view class="d-flex d-flex-middle pr-3 d-flex-between">
							<text class="iconfont icon-bianji color6d"></text>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-aixin1 color6d"></text>
								<text class="color71 font26 ml-1">4</text>
							</view>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-pinglun color6d"></text>
								<text class="color71 font26 ml-1">评论</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			
		</view>
		
		<view class="px-1 mt-2 pb-3" v-if="ctype == 1">
			<view class="bg-fff rounded30 px-2 py-3">
				<view class="d-flex d-flex-wrap mb-2">
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="huati px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">话题</text>
						</view>
						<text class="color71">这天气</text>
					</view>
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="huati px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">话题</text>
						</view>
						<text class="color71">今日新鲜事</text>
					</view>
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="huati px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">话题</text>
						</view>
						<text class="color71 d-flex-item text-clamp">超级校园</text>
					</view>
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="quanzi px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">圈子</text>
						</view>
						<text class="color71 d-flex-item text-clamp">书搭子</text>
					</view>
					
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="huodong px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">活动</text>
						</view>
						<text class="color71 d-flex-item text-clamp">嗒伴专属微信群聊</text>
					</view>
					<view class="d-flex d-flex-middle mb-3" style="width: 345rpx;">
						<view class="huodong px-1 py d-flex d-flex-middle d-flex-center rounded20 mr-2">
							<text class="font20 colorfff">活动</text>
						</view>
						<text class="color71 d-flex-item text-clamp">近期色情违规治理</text>
					</view>
				</view>
				
				
				<view class="d-flex d-flex-middle mb-5">
					<view class="bg-main rounded30 px-2 py mr-2">
						<text class="colorfff font-bold">全部</text>
					</view>
					<view class="d-flex d-flex-middle">
						<text class="color71 mr-2">相亲脱单</text>
						<text class="color71 mr-2">JK</text>
						<text class="color71 mr-2">二次元</text>
						<text class="color71 mr-2">萌宠</text>
						<text class="color71 mr-2">明星</text>
					</view>
				</view>
				
				<view class="mb-4">
					<view class="d-flex d-flex-middle d-flex-between mb-1">
						<view class="d-flex d-flex-middle">
							<view class="img-bg d-flex d-flex-center d-flex-middle mr-1">
								<image src="https://gp-dev.cdn.bcebos.com/gp-dev/upload/file/source/5652440e6d12b379395e0eccfb7f9452.png" class="img-bg-img"></image>
							</view>
							<view>
								<view class="mb-1 font30">七七琪琪</view>
								<view class="font24 color71">22分钟前推荐</view>
							</view>
						</view>
						<view class="d-flex d-flex-middle">
							<view class="bg-main py-1 px-2 font26 colorfff rounded30 mr-2">关注</view>
							<text class="iconfont icon-gengduo"></text>
						</view>
					</view>
					
					<view class="pb-2" style="padding-left: 120rpx;">
						<view class="font26 mb-2">
							今日火热开启 开局强力礼包
						</view>
						<view class="mb-5 d-flex d-flex-column">
							<image class="rounded30 mb-2" src="https://t12.baidu.com/it/u=1920533683,227091777&fm=30&app=106&f=JPEG?w=640&h=367&s=3E36058C40F0D1D6583A978A0300A09F" mode="widthFix" style="width: 500rpx;"></image>
							<view class="aixin rounded30 px-1 py-1 d-flex d-flex-middle">
								<text class="iconfont icon-aixin_shixin mr" style="color: #FF6C00;"></text>
								<text class="font24">心动</text>
							</view>
						</view>
						
						<view class="d-flex d-flex-middle pr-3 d-flex-between">
							<text class="iconfont icon-bianji color6d"></text>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-aixin1 color6d"></text>
								<text class="color71 font26 ml-1">4</text>
							</view>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-pinglun color6d"></text>
								<text class="color71 font26 ml-1">评论</text>
							</view>
						</view>
					</view>
				</view>
				
				<view class="mb-4">
					<view class="d-flex d-flex-middle d-flex-between mb-1">
						<view class="d-flex d-flex-middle">
							<view class="img-bg d-flex d-flex-center d-flex-middle mr-1">
								<image src="https://gp-dev.cdn.bcebos.com/gp-dev/upload/file/source/5652440e6d12b379395e0eccfb7f9452.png" class="img-bg-img"></image>
							</view>
							<view>
								<view class="mb-1 font30">七七琪琪</view>
								<view class="font24 color71">22分钟前推荐</view>
							</view>
						</view>
						<view class="d-flex d-flex-middle">
							<view class="bg-main py-1 px-2 font26 colorfff rounded30 mr-2">关注</view>
							<text class="iconfont icon-gengduo"></text>
						</view>
					</view>
					
					<view class="pb-2" style="padding-left: 120rpx;">
						<view class="font26 mb-2">
							今日火热开启 开局强力礼包
						</view>
						<view class="mb-5 d-flex d-flex-column">
							<image class="rounded30 mb-2" src="https://t12.baidu.com/it/u=1920533683,227091777&fm=30&app=106&f=JPEG?w=640&h=367&s=3E36058C40F0D1D6583A978A0300A09F" mode="widthFix" style="width: 500rpx;"></image>
							<view class="aixin rounded30 px-1 py-1 d-flex d-flex-middle">
								<text class="iconfont icon-aixin_shixin mr" style="color: #FF6C00;"></text>
								<text class="font24">心动</text>
							</view>
						</view>
						
						<view class="d-flex d-flex-middle pr-3 d-flex-between">
							<text class="iconfont icon-bianji color6d"></text>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-aixin1 color6d"></text>
								<text class="color71 font26 ml-1">4</text>
							</view>
							<view class="d-flex d-flex-middle">
								<text class="iconfont icon-pinglun color6d"></text>
								<text class="color71 font26 ml-1">评论</text>
							</view>
						</view>
					</view>
				</view>
				
				
			</view>
		</view>
		
		
	</view>
</template>

<script>
	import store from '@/store/index.js';
	export default {
		data() {
			return {
				bgcolor:'transparent',
				ctype:0,
				command:[{
					
				}]
			}
		},
		onPageScroll(e) {
			let scrollTop = e.scrollTop
			if (scrollTop > 10) {
				this.bgcolor = '#ffffff'
			}else{
				this.bgcolor = 'transparent'
			}
		},
		methods: {
			changType(type){
				this.ctype = type
			}
		}
	}
</script>

<style scoped>
.focus-txt{
	font-size: 40rpx;
	font-weight: 700;
	margin-bottom: 10rpx;
}
.liner{
	border-radius: 30rpx;
	height: 8rpx;
	width: 56rpx;
	background-color: transparent;
}
.lon{
	background-color: #f064cf;
}
.img-bg{
	width: 120rpx;
	height: 120rpx;
	border-radius: 120rpx;
	background-image: linear-gradient(to top, #fab452, #9d41d3);
}
.img-bg-img{
	height: 100rpx;
	width: 100rpx;
	border-radius: 100rpx;
	border: solid 5rpx #fff;
}
.huati{
	background: linear-gradient( 90deg, #5DB0FE 0%, rgba(93,176,254,0.8) 1%, #E8BAFC 100%);
}
.quanzi{
	background: linear-gradient( 90deg, #D951C6 1%, #FB9AB0 100%);
}
.huodong{
	background: linear-gradient( 90deg, #5DB0FE 1%, #86F5C9 100%);
}
.aixin{
	background: #FFA5DF;
	width: 90rpx;
}
</style>
